-
Notifications
You must be signed in to change notification settings - Fork 28
[Audit log forwarding] - update audit-tls secret to IM deployments for audit forwarding support #1061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
@@ -228,6 +228,10 @@ spec: | |||
type: string | |||
providerIssuerURL: | |||
type: string | |||
auditURL: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes should also be happening in the config directory, and changes here should be generated with make bundle
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Co-authored-by: Robert W. Hundley <[email protected]>
@@ -345,6 +345,10 @@ func updatePlatformAuthIDP(_ common.SecondaryReconciler, _ context.Context, obse | |||
"LDAP_CTX_POOL_PREFERREDSIZE"), | |||
updatesValuesWhen(not(observedKeySet[*corev1.ConfigMap]("MASTER_PATH")), | |||
"MASTER_PATH"), | |||
updatesValuesWhen(not(observedKeySet[*corev1.ConfigMap]("AUDIT_URL")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In conjunction with this comment, it's my feeling that these should just be added to the updatesAlways
call, and, if we're trying to account for an existing setting on the ConfigMap from an upgrade, then we should account for that in the bootstrap controller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're still missing changes to the bootstrap controller, and this update function call is no longer needed once that is done.
Co-authored-by: Robert W. Hundley <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
works as expected:
|
|
when its nil:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make test
fails when I pull this locally. Please address this.
Edit: Also be sure to add api/operator/v1alpha1/zz_generated.deepcopy.go
to your changes as it is updated when code generation is performed. Run make generate
and check git status
to see what I'm talking about. Thanks.
Signed-off-by: rashmi_kh <[email protected]>
Signed-off-by: rashmi_kh <[email protected]>
fixed |
Signed-off-by: rashmi_kh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am fine with the changes, once Rob's review comments are addressed, he can check and merge it
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rashmi43, Tirumalavasa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -345,6 +345,10 @@ func updatePlatformAuthIDP(_ common.SecondaryReconciler, _ context.Context, obse | |||
"LDAP_CTX_POOL_PREFERREDSIZE"), | |||
updatesValuesWhen(not(observedKeySet[*corev1.ConfigMap]("MASTER_PATH")), | |||
"MASTER_PATH"), | |||
updatesValuesWhen(not(observedKeySet[*corev1.ConfigMap]("AUDIT_URL")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're still missing changes to the bootstrap controller, and this update function call is no longer needed once that is done.
@@ -538,6 +548,12 @@ func (r *AuthenticationReconciler) generateAuthIdpConfigMap(clusterInfo *corev1. | |||
}, | |||
} | |||
|
|||
if authCR.Spec.Config.AuditUrl != nil && authCR.Spec.Config.AuditSecret != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be necessary - something is broken if you are not seeing updatesAlways
set the correct values on the ConfigMap. I'd assume it's because the bootstrap controller changes I mentioned earlier have not been done.
https://github.ibm.com/IBMPrivateCloud/roadmap/issues/67045
https://github.ibm.com/IBMPrivateCloud/roadmap/issues/67190 - CD